﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_SignUpStudentsFamilyMember 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_SignUpStudentsFamilyMember : Entity 
	{
		public TB_SignUpStudentsFamilyMember():base("TB_SignUpStudentsFamilyMember") {}

		#region Model
		private string _ID;
		private string _SignUpStudentsID;
		private string _Name;
		private string _Relation;
		private string _Party;
		private string _WorkOrStudyPlace;
		/// <summary>
		/// 
		/// </summary>
		public string ID
		{
			get{ return _ID; }
			set
			{
				this.OnPropertyValueChange(_.ID,_ID,value);
				this._ID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SignUpStudentsID
		{
			get{ return _SignUpStudentsID; }
			set
			{
				this.OnPropertyValueChange(_.SignUpStudentsID,_SignUpStudentsID,value);
				this._SignUpStudentsID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Name
		{
			get{ return _Name; }
			set
			{
				this.OnPropertyValueChange(_.Name,_Name,value);
				this._Name=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Relation
		{
			get{ return _Relation; }
			set
			{
				this.OnPropertyValueChange(_.Relation,_Relation,value);
				this._Relation=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Party
		{
			get{ return _Party; }
			set
			{
				this.OnPropertyValueChange(_.Party,_Party,value);
				this._Party=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string WorkOrStudyPlace
		{
			get{ return _WorkOrStudyPlace; }
			set
			{
				this.OnPropertyValueChange(_.WorkOrStudyPlace,_WorkOrStudyPlace,value);
				this._WorkOrStudyPlace=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ID,
				_.SignUpStudentsID,
				_.Name,
				_.Relation,
				_.Party,
				_.WorkOrStudyPlace};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ID,
				this._SignUpStudentsID,
				this._Name,
				this._Relation,
				this._Party,
				this._WorkOrStudyPlace};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ID = DataUtils.ConvertValue<string>(reader["ID"]);
			this._SignUpStudentsID = DataUtils.ConvertValue<string>(reader["SignUpStudentsID"]);
			this._Name = DataUtils.ConvertValue<string>(reader["Name"]);
			this._Relation = DataUtils.ConvertValue<string>(reader["Relation"]);
			this._Party = DataUtils.ConvertValue<string>(reader["Party"]);
			this._WorkOrStudyPlace = DataUtils.ConvertValue<string>(reader["WorkOrStudyPlace"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ID = DataUtils.ConvertValue<string>(row["ID"]);
			this._SignUpStudentsID = DataUtils.ConvertValue<string>(row["SignUpStudentsID"]);
			this._Name = DataUtils.ConvertValue<string>(row["Name"]);
			this._Relation = DataUtils.ConvertValue<string>(row["Relation"]);
			this._Party = DataUtils.ConvertValue<string>(row["Party"]);
			this._WorkOrStudyPlace = DataUtils.ConvertValue<string>(row["WorkOrStudyPlace"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_SignUpStudentsFamilyMember");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ID = new Field("ID","TB_SignUpStudentsFamilyMember","ID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SignUpStudentsID = new Field("SignUpStudentsID","TB_SignUpStudentsFamilyMember","SignUpStudentsID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Name = new Field("Name","TB_SignUpStudentsFamilyMember","Name");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Relation = new Field("Relation","TB_SignUpStudentsFamilyMember","Relation");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Party = new Field("Party","TB_SignUpStudentsFamilyMember","Party");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field WorkOrStudyPlace = new Field("WorkOrStudyPlace","TB_SignUpStudentsFamilyMember","WorkOrStudyPlace");
		}
		#endregion


	}
}

